package com.fmy.jurisdiction.core.commons.status;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @Description TODO 权限类型
 * @createTime 2019/9/16 11:21
 */
public enum PermissionType implements IEnum<Integer> {

    MENU_TYPE(1,"菜单"),
    JURISDICTION_TYPE(2,"权限");

    private int value;
    private String desc;

    PermissionType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @JsonValue
    public String getDesc() {
        return desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }
}
